﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools.Dialog;

namespace Tools
{
    public class FormClass
    {
        private static readonly object lockObj = new object();
        private static string LastMac = string.Empty;

        public static string GetEnterMac(Point point)
        {
            lock (lockObj)
            {
                string inputMac = string.Empty;
                EnterMac enter = new EnterMac(point);
                if (enter.ShowDialog() == System.Windows.Forms.DialogResult.OK && LastMac != enter.MacAddr)
                {
                    inputMac = enter.MacAddr;
                    LastMac = enter.MacAddr;
                }
                return inputMac;
            }
        }
    }

    public class OnuMsg
    {
        public string OnuName { get; set; }//ONU名称
        //public int OnuNumber { get; set; }//ONU所占用的显示窗口
        public string OnuSn { get; set; }
        //public bool OnuState { get; set; }
        //public bool RunCmd { get; set; }
        //public DateTime OnlineTime { get; set; }
    }
}
